#ifndef SNAKE_H
#define SNAKE_H

#include <QMainWindow>
#include <playwindow.h>
#include <QSoundEffect>

QT_BEGIN_NAMESPACE
namespace Ui {
class Snake;
}
QT_END_NAMESPACE

class Snake : public QMainWindow
{
    Q_OBJECT

public:
    Snake(QWidget *parent = nullptr);
    ~Snake();

    //绘制主界面背景图
    void paintEvent(QPaintEvent * event);

    //游戏进行画面
    PlayWindow *playwindow = nullptr;

    //音乐
    QSoundEffect *backgroundMusic;

private:
    Ui::Snake *ui;


};
#endif // SNAKE_H
